﻿package net.wangit.framework.action;

import net.wangit.framework.exception.NestableRuntimeException;

@SuppressWarnings("serial")
public class ActionConfigurationException extends NestableRuntimeException {
	private String prop;

	public ActionConfigurationException(String s) {
		super(s);
	}

	public ActionConfigurationException(String s, Throwable cause) {
		super(s, cause);
	}

	public ActionConfigurationException(String s, String domain, String unitId,
			String elementId, String prop, Throwable cause) {
		super((new StringBuilder(String.valueOf(s))).append(
				"\naction configuration error: please check ").append(prop)
				.append(" in ").append(domain).append("/").append(unitId)
				.append("/").append(elementId).toString(), cause);
		this.prop = prop;
	}

	public String getProp() {
		return prop;
	}
}
